<!DOCTYPE html>
<html>
<head>
    <meta charset=UTF-8>
    <meta http-equiv=X-UA-Compatible content="IE=edge,Chrome=1">
    <meta http-equiv=X-UA-Compatible content="IE=9">
    <!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>{$data.name}</title>
    {if $data.description != ''}
    <meta name="description" content="{$data.description}">
    {/if}
    <meta name="ROBOTS" content="NOODP">
    <script src="https://static.jmlk.co/scripts/dist/jmlink.min.js"></script>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <style type="text/css">
        body,p {
            padding:0;
            margin:0;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }
        img {
            border: 0;
            vertical-align: bottom;
        }
    </style>
</head>
<body>
<div id=app>

    <section class="middle">
            {$data.content}
    </section>
    {include file="../apps/web/view/public/sensors.html" /}
    <script language="javascript">
        var options = [
            {foreach name="$mLinkConfig" item="v" key="k"}
            {
                jmlink: 'https://a0ue2y.jmlk.co/AA63',// 短链地址
                button: document.querySelector('a.btn{$k}'),
                plhparams: {
                    target: 'local',
                    link: "{$v}"
                }
            },
            {/foreach}
        ];

        new JMLink(options);


        wx.config({
                debug: false,
                appId: '{$signPackage.appId}',
                timestamp: {$signPackage.timestamp},
            nonceStr: '{$signPackage.nonceStr}',
            signature: '{$signPackage.signature}',
            jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage']
        });
        wx.ready(function(){
            wx.onMenuShareAppMessage({
                title: '{$data.name}', // 分享标题
                desc: '{$data.description}', // 分享描述
                link: '{$signPackage.url}', // 分享链接
                imgUrl: 'https://oss.goddessxzns.com/picture/uploads/logo.png?x-oss-process=style/show', // 分享图标
                type: 'link', // 分享类型,music、video或link，不填默认为link
                dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
                success: function () {
                    // 用户确认分享后执行的回调函数
                },
                cancel: function () {
                    // 用户取消分享后执行的回调函数
                }
            });
            wx.onMenuShareTimeline({
                title: '{$data.name}', // 分享标题
                link: '{$signPackage.url}', // 分享链接$signPackage.url
                imgUrl: 'https://oss.goddessxzns.com/picture/uploads/logo.png?x-oss-process=style/show', // 分享图标
                success: function () {
                    // 用户确认分享后执行的回调函数
                },
                cancel: function () {
                    // 用户取消分享后执行的回调函数
                }
            });
        });
    </script>
</div>
</body>
</html>
